package com.bee.auth.common.vo;


import com.bee.user.client.dto.ResourceDTO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 权限资源
 * @author Damin.yang
 * @date 2019/8/27 9:20
 */
@Data
public class ResourceVO {

    private String name;

    private String code;

    public static ResourceVO covert(ResourceDTO dto) {
        ResourceVO vo = new ResourceVO();
        BeanUtils.copyProperties(dto, vo);
        return vo;
    }

}
